package com.example.demo;

import java.util.HashSet;

/**
 * @author yishuangshuang
 * @ClassName: SetDemo
 * @Description: TODO
 * @date 2019/1/28 2:17 PM
 */
public class SetDemo {
    public static void main(String[] args) {
        HashSet<String> strings = new HashSet<>();
        strings.add("ddd");
        strings.add("sss");
        strings.add("aaa");
        System.out.println(strings.contains("ddd"));;
    }
}
